<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String baseUrl = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html>
<html>
<base href="<%=baseUrl%>" />
<meta charset="utf-8">
<head>
<title>用户登录</title>
<link rel="stylesheet" type="text/css"
	href="static_front/css/bootstrap.min.css">
<!-- <link rel="stylesheet" type="text/css" href="static_front/css/font-awesome.css"> -->
<link rel="stylesheet"
	href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
<link rel="stylesheet" type="text/css"
	href="static_front/css/common.css">
<style type="text/css">
.bd-placeholder-img {
	font-size: 1.125rem;
	text-anchor: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

@media ( min-width : 768px) {
	.bd-placeholder-img-lg {
		font-size: 3.5rem;
	}
}

html, body {
	height: 100%;
}

body {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	padding-top: 40px;
	padding-bottom: 40px;
	background-color: #f5f5f5;
}

.form-signin {
	width: 100%;
	max-width: 330px;
	padding: 15px;
	margin: auto;
}

.form-signin .checkbox {
	font-weight: 400;
}

.form-signin .form-control {
	position: relative;
	box-sizing: border-box;
	height: auto;
	padding: 10px;
	font-size: 16px;
}

.form-signin .form-control:focus {
	z-index: 2;
}

.form-signin input[type="email"] {
	margin-bottom: -1px;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
	margin-bottom: 10px;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}
</style>
</head>
<body class="text-center">
	<form class="form-signin" action="user/login.do" method="post">
		<img class="mb-4"
			src="https://7n.w3cschool.cn/statics/images/logonew2.png" alt=""
			width="200">
		<h1 class="h3 mb-3 font-weight-normal">登录</h1>
		<h6 class="text-danger">
		${msg}
		</h6>
		<label for="inputEmail" class="sr-only">手机号</label> <input
			type="text" name="user.mobile" id="inputEmail" class="form-control" placeholder="手机号"
			required autofocus value="18958156793"> <label for="inputPassword"
			class="sr-only">密码</label> <input type="password" name="user.password" id="inputPassword"
			class="form-control" placeholder="密码" value="tom" required>
		<div class="checkbox mb-3">
			<label> <input type="checkbox" value="remember-me">
				记住我 <a href="reg.jsp">去注册</a>
			</label>
		</div>
		<button class="btn btn-lg btn-primary btn-block" type="submit">登
			录</button>
		<p class="mt-5 mb-3 text-muted">&copy; 2020</p>
	</form>

	<script type="text/javascript" src="static_front/js/jquery.min.js"></script>
	<script type="text/javascript" src="static_front/js/bootstrap.min.js"></script>
</body>
</html>